<?php

/**
 * \file
 * Classe `Color`.
 */

namespace pilar\SimpleFormMembers /* \cond */ ; /* \endcond */
{

/**
 * Membre de couleur.
 *
 * \since 17/11/2008
 * \author Matthieu OVIEDO <matthieu.oviedo@gmail.com>
 */
class Color extends TextBox {

protected function loadDefaultParams() {
 parent::loadDefaultParams();
 
 $this->params->set(array(
  'size' => 6,
  'maxLength' => 6
 ));
}


public function guiDomNode($domDoc) {
 $domGui = parent::guiDomNode();

 $domGui->insertBefore(
  $domDoc->createTextNode('#'),
  $domGui->getElementsByTagName('input').item(0)
 );

 return $domGui;
}


} // Class.

} // Namespace.

?>
